package com.campus.counseling.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("consultation_record")
public class ConsultationRecord {
    
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private Long appointmentId;
    
    private Long studentId;
    
    private Long counselorId;
    
    private LocalDateTime consultationTime;
    
    private Integer duration;
    
    private String mainIssue;
    
    private String analysis;
    
    private String suggestion;
    
    private String nextPlan;
    
    private Double rating;
    
    @TableLogic
    private Integer deleted;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    // 非数据库字段
    @TableField(exist = false)
    private String studentName;
    
    @TableField(exist = false)
    private String counselorName;
    
    @TableField(exist = false)
    private String counselorTitle;
}